package org.ediba.siri.web.models.view;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

public class TileController extends org.ediba.siri.web.models.TileController{
	
	public ModelAndView titleHandler(HttpServletRequest request, HttpServletResponse response, Object command){
		return new ModelAndView("title","title","SIRI > Modelos > Vista");
	}

	public ModelAndView stylesHandler(HttpServletRequest request, HttpServletResponse response, Object command){
		return new ModelAndView("styles");
	}
	
	public ModelAndView scriptsHandler(HttpServletRequest request, HttpServletResponse response, Object command){
		List<String> _items = new ArrayList<String>(3);
		_items.add("ext/src/ux/form/ObjectComboBox");
		_items.add("models/script");
		_items.add("models/view/script");
		return super.scriptsHandler(request, response, command).addObject("items", _items);
	}
	
}
